package com.zhangjq.simplefactory;

import com.zhangjq.common.AliIPay;
import com.zhangjq.common.CardIPay;
import com.zhangjq.common.IPay;
import com.zhangjq.common.TencentIPay;

/**
 * Created by Administrator on 2019/3/9 0009.
 */
public enum PayTypeEnum {
    ALIPAY(new AliIPay()),
    TENCENTPAY(new TencentIPay()),
    CARDPAY(new CardIPay()),
    ;

    private IPay iPay;

    private PayTypeEnum(IPay iPay){
        this.iPay = iPay;
    }

    public IPay getiPay() {
        return iPay;
    }

    public void setiPay(IPay iPay) {
        this.iPay = iPay;
    }
}
